	<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
    <link href="<%=path %>/images/css.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    function submit1() {
		var dicname = document.getElementById("dicname");
		if(dicname.value.length < 1){
			showMsg("信息名称不能为空！");
			return false;
		}
		var dictype = document.getElementById("dictype");
		if(dictype.value.length < 1){
			showMsg("信息类型不能为空！");
			return false;
		} 
	}
	function reset1(){
		var form = document.getElementById("from1");
		form.reset();
	}
	function showMsg(msg){
		document.getElementById('showmsg').style.display = 'block';
		document.getElementById('showmsg').innerText = msg;
		window.setTimeout("hiddenMsg()", 3000);
	}
	function hiddenMsg(){
		document.getElementById('showmsg').style.display = 'none';
		document.getElementById('showmsg').innerText = '';
	}
    </script>
  </head>
<body class="bg_003">


<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%" height="10" align="center" >
    <table width="75%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="25"><img src="<%=basePath%>/images/1.png" width="16" height="16"></td>
        <td><h1>增加信息</h1></td>
      </tr>
    </table>
    </td>
    <td align="right"></td>
    <td width="39"></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1" bgcolor="#e1e1e2"></td>
        <td height="298" align="center">
        <form id="from1" action="<%=path%>/dic/add.action" enctype="multipart/form-data" method="post"
		onsubmit="return submit1();">
      	<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e1e1">
		          <tr bgcolor="#Ffffec"> 
		        <td align="right">信息类型<font color="RED">*</font>：</td>
		        <td>
		          <select id="dictype" name="dictionaryVo.dictype">
			      	<option value="">------请选择-----</option>
			      	<option value="DIC_COMPANY">所属企业</option>
		            <option value="DIC_SCHOOL">服务学校</option>
		            <option value="DIC_PROGRAM_TYPE">求助列表</option>
		            <option value="DIC_MANAGLEVEL">安全级别</option>
		            <option value="DIC_RELIGION">政治面貌</option>
		            <option value="DIC_POSITION">职务</option>
		            <option value="DIC_COLOR">车色</option>
			      </select>&nbsp;&nbsp;&nbsp;&nbsp;
		        </td>
		      </tr>
		      <tr bgcolor="#Ffffec"> 
		        <td width="20%" align="right">信息名称<font color="RED">*</font>：</td>
		        <td width="80%">
				   <input size=40 type="text" id="dicname" name="dictionaryVo.dicname"/>
		         </td>
		      </tr>
		      <tr bgcolor="#Ffffec"> 
		        <td colspan="2" height="30"> 
		          <div align="center">
		          	<input type="submit" value="保存" />
		            <input type='button' value='返回' onclick='javascript:window.history.back(-1);' /> 
		          </div>
		        </td>
		      </tr>
	        </table>
	        </form>
	        </td>
        <td width="1" ></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="5" height="5"><img src="<%=basePath%>/images/019.jpg" width="5" height="5"></td>
        <td width="5" height="5"><img src="<%=basePath%>/images/020.jpg" width="5" height="5"></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="603" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="26">&nbsp;</td>
  </tr>
</table>
<script type="text/javascript">
var msg = "${requestScope.rMsg}";
if(msg != ""){
	showMsg(msg);
}
</script>
</body>
</html>
